import {defineStore} from "pinia";

import {onMounted, ref} from "vue";
import {getFans} from "@/apis/slot.js";

export const getFanStore = defineStore("fans", () => {
    const fanList = ref({})
    const fanStore = async () =>{
        const res = await getFans()
        fanList.value = res.data
    }
    onMounted(() =>fanStore())
    return {fanStore,fanList}
})